import Vue from 'vue';
import VueRouter from 'vue-router';

Vue.use(VueRouter);

const routes = [
  {
    path: '/',
    redirect: '/test'
  },
  { // 测试页面
    path: '/test',
    name: 'test',
    component: () => import(/* webpackChunkName: "about" */ '../views/test')
  }
];

const router = new VueRouter({
  routes
});

export default router;
